package com.market.mapper;

import com.market.entity.Role;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author :  KanShan
 * @version : 1.8
 * @Date: 2021/11/29/15:40
 * @注释 :
 */
public interface RoleMapper {
    int insert(@Param("role") Role role);

    int update(@Param("role") Role role);

    int delete(@Param("id") Long id);

    List<Role> selectList();


    List<Role> selectListByIdOrName(@Param("string") String string);
}
